package org.example.cake.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 订单详情类
 * @Author: luojiangjin
 * @Date: 2025/8/9 11:47
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class OrderDetail {
    // 订单基本信息
    private Integer orderId;
    private Integer userId;
    private String orderNum;
    private Date orderTime;
    private BigDecimal orderPrice;
    private Integer orderCount;
    private Integer orderStatus; // 0.待支付 1.待配送 2.待收货 3.已完成
    private Integer isEvaluated; // 0.未评价 1.已评价
    private Integer refundStatus; // 0.未退款 1.退款中 2.已退款 3.不同意退款
    private String userReason; // 用户申请退款理由
    private String shopReply; // 商家回复用户退款理由

    // 支付信息
    private Integer payId;
    private BigDecimal deliveryFee;
    private String remark;
    private Integer addressId;
    private String adddate;

    // 蛋糕信息
    private Integer cakeId;
    private String cakeName;
    private String cakeDesc;
    private BigDecimal cakePrice;
    private BigDecimal cakePriceBig; // 6寸价格
    private String cakeImage;
    private Integer cakeSize; // 0:4寸 1:6寸
    private Integer cakeSales; // 销量

    // 地址信息
    private String consignee;
    private String phone;
    private String province;
    private String city;
    private String district;
    private String detailAddress;

    // 优惠券信息
    private Integer discountId;
    private String discountName;
    private BigDecimal maxMoney;
    private BigDecimal discountMoney;
}